package com.lijianlove.message.common.model;

import com.lijianlove.message.common.enums.MsgStatusEnum;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @author lijian
 * @date 2019/5/17 下午3:24
 */
@Data
@Accessors(chain = true)
public class Message {

    private String id;
    private String body;
    /**
     * RabbitMetaMessage.uniqueKey ,不能为空，根据该 key 可以获取到该消息应该路由到哪个配置以及该消息的检查地址
     */
    private String uniquMetaKey;

    private MsgStatusEnum status;

    private Date createTime;
    private Date expireTime;
}
